import { PASS_LIST_SLIDE,GET_VISA_CATEGORY,GET_PROVINCE_LIST,GET_DEFAULT_ADDRESS} from "../actions/actionsTypes"

export default function homeReducer(state = {}, action) {
	switch (action.type) {
		case PASS_LIST_SLIDE:
			return Object.assign({}, state, {passList: action.data});
		case GET_VISA_CATEGORY:
			return Object.assign({}, state, {visaList: action.data});
		case GET_PROVINCE_LIST:
			return Object.assign({}, state, {provinceList: action.data});
		case GET_DEFAULT_ADDRESS:
			return Object.assign({}, state, {defaultAddress: action.data});
		default:
			return state;
	}
}
